package com.example.mydiyview;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

import com.example.mydiyview.DiyView.InputNumberView;
import com.example.mydiyview.Loginpage.loginKeyboard;

public class MainActivity extends AppCompatActivity {
private InputNumberView view;
private loginKeyboard loginKeyboard;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
//        requestWindowFeature(Window.FEATURE_NO_TITLE);
//        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
        loginKeyboard = findViewById(R.id.testone);
        loginKeyboard.setOnpressListent(new loginKeyboard.OnpressListent() {
            @Override
            public void onNumPress(int num) {
                Log.i("TAG", "onNumPress: "+num);
            }

            @Override
            public void onBackPress() {
                Log.i("TAG", "onBackPress:back");
            }
        });
//        view = findViewById(R.id.max);
//         view.add(new InputNumberView.OnNumchanglistener() {
//            @Override
//            public void onNumval(int num) {
//                Log.i("TAG", "onNumval: "+num);
//            }
//        });
//        view.del(new InputNumberView.OnNumchanglistener() {
//            @Override
//            public void onNumval(int num) {
//                Log.i("TAG", "onNumval: "+num);
//            }
//        });

    }
}